<?php

class Photo extends AppModel
{

    var $name = 'Photo';
    public $validate = array(
        'lien' => array(
            array(
                'rule' => '/^.*\.(jpg|png|jpeg)$/',
                'required', true,
                'allowEmpty' => false,
                'message' => "Veuillez choisir une photo !"
    )));

}

?>